home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8345 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  4. Subject: Re: Help for using bcopy function
  5. Date: 29 Feb 96 10:38:05 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.825590285@rscernix>
  8. References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <ELIAS.96Feb27144032@cepheus.omicron.se> elias@cepheus.omicron.se (Elias Martenson) writes:
  13.  
  14. >In article <4gl53u$4bv@kocrsv08.delcoelect.com> c2xjs2@mail.delcoelect.com (Jianli Sun) writes:
  15. >
  16. >> I use bcopy function in a client-server program, I get a error 
  17. >> say bcopy is not declared, when I try to compile it on UNIX using
  18. >> gcc. Can someone out there, tell me which libary file I should 
  19. >> inclued to compile it. please e-mail me. thanks!
  20. >
  21. >bcopy() is not standard AFAIK. Use memcpy instead.
  22.  
  23. memmove is the proper replacement for bcopy.  memcpy will do, as well,
  24. only if bcopy was not used on overlapping blocks.
  25.  
  26. Dan
  27. --
  28. Dan Pop
  29. CERN, CN Division
  30. Email: danpop@mail.cern.ch 
  31. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  32.